package com.chikitbd.common;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class Test {
    private String getFilePath() {
        // 获得Jar包执行的目录

        String filePath = this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
        System.out.println(filePath);
        String basePath = "";
        try {
            basePath = URLDecoder.decode(filePath, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            System.out.println(e);
            e.printStackTrace();
        }
        System.out.println("basePaht:" + basePath);
        System.out.println(basePath);
        return "";
    }

}
